package baseFx.database.query;

public class PageSet {
    public int pageIndex;
    public int pageSize;

    public PageSet() {
        pageSize = 10;
        pageIndex = 1;
    }

    public PageSet(int pageIndex, int pageSize) {
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
    }

    public int getStartRow() {
        return getSkipCount() + 1;
    }

    public int getSkipCount(){
        return (pageIndex - 1) * pageSize;
    }
}
